package com.zzq.guli.service.base.result;

import lombok.Getter;
import lombok.ToString;

@Getter
@ToString
public enum ResultCodeEnum {

    SUCCESS(true, 20000,"成功"),
    UNKNOWN_REASON(false, 20001, "未知错误"),
    EXCEL_DATA_IMPORT_ERROR(false,3000 , "插入失败"),
    LOGIN_PASSWORD_ERROR(false,3001 , "密码错误"),
    LOGIN_MOBILE_ERROR(false,3002 , "手机号错误"),
    CHECKCODE_ERROR(false,3003 , "验证码错误"),
    REGISTER_MOBLE_ERROR(false,3004 , "用户已经注册过了"),
    SMS_ERROR(false,3005,"短信发送失败"),
    PARAM_ERROR(false,4000 , "参数异常");

    private Boolean success;

    private Integer code;

    private String message;

    ResultCodeEnum(Boolean success, Integer code, String message) {
        this.success = success;
        this.code = code;
        this.message = message;
    }


}
